﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Jenvin.Library.Helper;
using Jenvin.Library.DataStruct;
using Jenvin.Library.Functional;
using System.Web;
using System.Xml;
namespace Test
{
    class Program
    {
        static void Main(string[] args)
        {

          

            HttpWebExecutor executor = new HttpWebExecutor(String.Empty);
            var content = "><&\"'~!@#$#slei20skO?`>新华网广州5月13日电（记者吴涛）因受大面积暴雨、大暴雨及雷雨大风等强对流天气袭击，广东省气象局13日9时启动气象灾害暴雨三级应急响应。【天气查询】";
            var html = executor.GetWebContent("http://www.cnblogs.com/").ToSafeXml();
            XmlDocument xmlDoc = new XmlDocument();
            xmlDoc.LoadXml("<root/>");
            xmlDoc.DocumentElement.InnerXml += content.ToSafeXml(); ;

            ScoreUtils utils = new ScoreUtils();
            Random rd = new Random(Guid.NewGuid().GetHashCode());
            CodeTimer.Initialize();

         //   int iter = 10000000;
         //   CodeTimer.Time("计算 ", iter, () => utils.GetRelevanceScore(
         //       rd.Next(0, 4)
         //       //rd.NextDouble()
         //       ));
         //   CodeTimer.Time("Cache ", iter, () => utils.GetRelevanceScoreCache(
         //rd.Next(0, 4)
         //       //rd.NextDouble()
         //));
            Console.WriteLine();
            // Console.Read();
        }
    }
}
